<?php

/**
 * params.php
 *
 */
return array(
    // cache settings -if APC is not loaded, then use CDbCache
    'cache.core' => extension_loaded('apc') ? array('class' => 'CApcCache',) : array('class' => 'CDbCache', 'connectionID' => 'db', 'autoCreateCacheTable' => true, 'cacheTableName' => 'cache'),
    'cache.content' => array(
        'class' => 'CDbCache',
        'connectionID' => 'db',
        'autoCreateCacheTable' => true,
        'cacheTableName' => 'cache',
    ),
    'cache.file' => array('class' => 'system.caching.CFileCache',),
    'php.exePath' => '/usr/bin/php',
    'db.connect' => array(
        'connectionString' => 'mysql:host=localhost;dbname=yii_bus',
        'emulatePrepare' => true,
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8',
        'initSQLs'=>array('set names utf8'),
        'tablePrefix' => 'b_',
        'schemaCachingDuration' => YII_DEBUG ? 0 : 86400000, // 1000 days
    ),
    'settings' => array(
        'class' => 'common.extensions.settings.CmsSettings',
        'cacheComponentId' => 'cache',
        'cacheId' => 'global_website_settings',
        'cacheTime' => 84000,
        'tableName' => '{{settings}}',
        'dbComponentId' => 'db',
        'createTable' => false,
        'dbEngine' => 'InnoDB',
    ),
    'format' => array(
        'datetimeFormat' => 'H:i A d/m/Y',
        'dateFormat' => 'd/m/Y',
    ),
    'pageSize' => 20
);